package club.justwill.single.persistence.document;

import org.springframework.data.mongodb.core.mapping.Field;

import java.util.Date;

/**
 * Created by xiangnan on 16-1-14.
 */
public class SupportUser {

    @Field("nickname")
    private String nickName;

    @Field("price")
    private double price;

    @Field("num")
    private int num;

    @Field("date")
    private Date date;

    @Field("head_icon")
    private String headIcon;

    @Field("trade_nu")
    private String tradeNumber;

    public SupportUser(String nickName, double price, int num, Date date, String headIcon, String tradeNumber) {
        setNickName(nickName);
        setPrice(price);
        setNum(num);
        setDate(date);
        setHeadIcon(headIcon);
        setTradeNumber(tradeNumber);
    }

    public SupportUser() {}

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getHeadIcon() {
        return headIcon;
    }

    public void setHeadIcon(String headIcon) {
        this.headIcon = headIcon;
    }

    public String getTradeNumber() {
        return tradeNumber;
    }

    public void setTradeNumber(String tradeNumber) {
        this.tradeNumber = tradeNumber;
    }
}
